home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / tcsh / dist / config / config.aix < prev    next >
Encoding:
Text File  |  1991-12-21  |  4.7 KB  |  201 lines

  1. /*
  2.  * config.h -- configure various defines for tcsh
  3.  *
  4.  * All source files should #include this FIRST.
  5.  *
  6.  * Edit this to match your system type.
  7.  */
  8. /* for an RT running the IBM Sys. V version of AIX. -- tells the compiler
  9.    reasonable things. MUST BE the fist thing the compiler sees */
  10. #ifdef PL8CC
  11. \option MAXD(20000,20000) MAXS(50000,50000) MAXL(20000,20000) MAXH(20000,20000);
  12. \option MAXA(20000,20000) MAXP(500) EL_SIZE(20000) ET_SIZE(30000);
  13. \option OPTIONS UNSAFE;
  14. #endif
  15.  
  16. /****************** System dependant compilation flags ****************/
  17. /*
  18.  * POSIX    This system supports IEEE Std 1003.1-1988 (POSIX).
  19.  */
  20. #undef POSIX
  21.  
  22. /*
  23.  * POSIXJOBS    This system supports the optional IEEE Std 1003.1-1988 (POSIX)
  24.  *        job control facilities.
  25.  */
  26. #ifndef aiws
  27. #define POSIXJOBS
  28. #else
  29. #undef POSIXJOBS
  30. #endif
  31.  
  32. /*
  33.  * VFORK    This machine has a vfork().  
  34.  *        It used to be that for job control to work, this define
  35.  *        was mandatory. This is not the case any more.
  36.  *        If you think you still need it, but you don't have vfork, 
  37.  *        define this anyway and then do #define vfork fork.  
  38.  *        I do this anyway on a Sun because of yellow pages brain damage,
  39.  *        [should not be needed under 4.1]
  40.  *        and on the iris4d cause    SGI's fork is sufficiently "virtual" 
  41.  *        that vfork isn't necessary.  (Besides, SGI's vfork is weird).
  42.  *        Note that some machines eg. rs6000 have a vfork, but not
  43.  *        with the berkeley semantics, so we cannot use it there either.
  44.  */
  45. #undef VFORK
  46.  
  47. /*
  48.  * BSDJOBS    You have BSD-style job control (both process groups and
  49.  *        a tty that deals correctly
  50.  */
  51. #ifndef aiws
  52. # define BSDJOBS
  53. #else
  54. # undef BSDJOBS
  55. #endif
  56.  
  57. /*
  58.  * BSDSIGS    You have 4.2-style signals, rather than USG style.
  59.  *        Note: POSIX systems should not define this unless they
  60.  *        have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX).
  61.  */
  62. #define BSDSIGS
  63.  
  64. /*
  65.  * BSDTIMES    You have BSD-style process time stuff (like rusage)
  66.  *        This may or may not be true.  For example, Apple Unix
  67.  *        (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES.
  68.  */
  69. #ifndef aiws
  70. # define BSDTIMES
  71. #else
  72. # undef BSDTIMES
  73. #endif
  74.  
  75. /*
  76.  * BSDNICE    Your system uses setpriority() instead of nice, to
  77.  *        change a processes scheduling priority
  78.  */
  79. #ifndef aiws
  80. # define BSDNICE
  81. #else
  82. # undef BSDNICE
  83. #endif
  84.  
  85. /*
  86.  * TERMIO    You have struct termio instead of struct sgttyb.
  87.  *         This is usually the case for SVID systems, where
  88.  *        BSD uses sgttyb. POSIX systems should define this
  89.  *        anyway, even though they use struct termios.
  90.  */
  91. #if defined(_IBMR2) || defined(aiws)
  92. # define TERMIO
  93. #else
  94. # undef TERMIO
  95. #endif /* _IBMR2 || aiws */
  96.  
  97. /*
  98.  * SVID        Your machine is SVID complient (Sys V, HPUX, A/UX)
  99.  *        NOTE: don't do this if you are on a Pyramid -- tcsh is
  100.  *        built in a BSD universe.
  101.  *        Set SVID to 1, 2, 3, or 4, depending the version of System V
  102.  *        you are running. Or set it to 0 if you are not SVID based
  103.  */
  104. #ifndef aiws
  105. # define SVID    0
  106. #else
  107. # define SVID    2
  108. #endif /* aiws */
  109.  
  110. /*
  111.  * YPBUGS    Work around Sun YP bugs that cause expansion of ~username
  112.  *        to send command output to /dev/null
  113.  */
  114. #undef YPBUGS
  115.  
  116. /*
  117.  * SIGVOID    Define this if your signal handlers return void.  On older
  118.  *        systems, signal returns int, but on newer ones, it returns void.
  119.  */
  120. #if (defined(_AIX) && defined(_I386)) || defined(aiws)
  121. # undef SIGVOID
  122. #else /* _AIX && _I386 */
  123. # define SIGVOID 
  124. #endif /* (_AIX && _I386) || aiws */
  125.  
  126. /*
  127.  * HAVEDUP2    Define this if your system supports dup2().
  128.  */
  129. #define HAVEDUP2
  130.  
  131. /*
  132.  * UTHOST    Does the utmp file have a host field?
  133.  */
  134. #ifndef aiws
  135. # define UTHOST
  136. #else
  137. # undef UTHOST
  138. #endif
  139.  
  140. /*
  141.  * DIRENT    Your system has <dirent.h> instead of <sys/dir.h>
  142.  */
  143. #define DIRENT
  144.  
  145. /****************** local defines *********************/
  146. /*
  147.  * IBMAIX    You are running aix on the ps2, rs6000, on ibm370
  148.  */
  149. #define IBMAIX
  150.  
  151. /*
  152.  * TCF        You have the transparent computing facility.
  153.  */
  154. #if !defined(_IBMR2) && !defined(aiws)
  155. # define TCF    /* ps2 and 370 have TCF */
  156. #else
  157. # undef TCF    /* The rs6000 and the rt does not have TCF yet */
  158. #endif
  159.  
  160. #if defined(_AIX) && defined(_I386)
  161. # define _AIXPS2    /* give a more sane name */
  162. #endif /* _AIX && _386 */
  163.  
  164. #if defined(_AIXPS2)
  165. # define _NO_PROTO
  166. # define _BSD
  167. # define _BSD_INCLUDES
  168. #endif /* _AIXPS2 */
  169.  
  170. #if defined(_IBMR2)
  171. # define _POSIX_SOURCE
  172. # define _ALL_SOURCE    /* for window size etc, extra tty chars etc. */
  173. #endif
  174.  
  175. #ifdef NLS
  176. # undef NLS    /* Let us decide in config_f.h... */
  177. #endif /* NLS */
  178.  
  179. /*
  180.  * NOSTRCOLL    We don't have strcoll()
  181.  */
  182. #ifndef _IBMR2
  183. # define NOSTRCOLL    /* only the rs6000 has strcoll() */
  184. #endif
  185.  
  186. /*
  187.  * Function pointer comparisons are broken
  188.  */
  189. #ifdef aiws
  190. #define void int
  191. #endif /* aiws */
  192.  
  193. /****************** configurable hacks ****************/
  194. /* have been moved to config_f.h */
  195.  
  196. #include "config_f.h"
  197.  
  198. #if defined(_AIXPS2) || defined(aiws)
  199. # undef NLS
  200. #endif
  201.